// components/choosePop/choosePop.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    data: {
      type: Object,
      value: {},
      observer: function (newVal, oldVal, changedPath) {
        
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    outSideStyle:{
      cls: 'contestList'
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {
    chooseClick:function(e){
      this.hideModal();
      this.triggerEvent('chooseClick', e.currentTarget.dataset.item);
    },
    hideModal: function () {
      let childs = this.selectComponent("#choose");
      childs.closePop();
      setTimeout(() => {
        this.triggerEvent('hideModal');
      }, childs.data.time)
    },
  }
})
